-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Task 상태 수정 api (드래그앤드롭 부분 우선 구현) #192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
드로그 앤 드랍에 api를 붙이기 위해서 많은 로직을 상위 컴포넌트로 가져오는 작업이 번거로우셨을텐데 props interface를 따로 정리해주셔서 더욱 좋은 것 같습니다! 너무너무 고생하셨습니다!! 👍
src/pages/Today.tsx
Outdated
|
||
const [removed] = sourceClone.splice(source.index, 1); | ||
const { mutate } = useMutation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
해당 Mutation 코드는 api 내에 query 파일에 분리하는 건 어떨까요? 나중에 해당 쿼리를 수정할 때 더 용이할 것 같습니다!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 분리하였습니다!!
5adcf78
to
ea0ff13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
으앙 ,,~ 고생 많으셨어요,, 특히 상태 업데이트 부분, , 고생 정말 많으셨겠네요,, 수고하셨습니다!!!
taskId: number; | ||
targetDate?: string | null; | ||
status?: string | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
옵셔널로 해주고 또 null까지 처리해주신 이유가 뭔가용?-? (진짜 몰라서 그럼,,)
작업 내용 🧑💻
알게된 점 🚀
placeholderData
사용 시 한번 불러올 때만 깜빡임이 심하고, 그 이후에는 기존에 캐시된 값으로 깜빡임을 최소화할 수 있다는 것을 알았습니다.리뷰 요구사항 💬
관련 이슈
close #174
스크린샷 (선택)